<?php
namespace ApigilityActivity\V1\Rest\Review;

use ApigilityAddress\DoctrineEntity\Address;
use ApigilityAddress\V1\Rest\Address\AddressEntity;
use ApigilityCatworkFoundation\Base\ApigilityObjectStorageAwareEntity;
// use ApigilityUser\DoctrineEntity\IncomeLevel;
// use ApigilityUser\DoctrineEntity\Occupation;
// use ApigilityUser\DoctrineEntity\PersonalCertification;
// use ApigilityUser\V1\Rest\IncomeLevel\IncomeLevelEntity;
// use ApigilityUser\V1\Rest\Occupation\OccupationEntity;
// use ApigilityUser\V1\Rest\PersonalCertification\PersonalCertificationEntity;
// use ApigilityUser\V1\Rest\ProfessionalCertification\ProfessionalCertificationEntity;

class ReviewEntity extends ApigilityObjectStorageAwareEntity
{
    /**
     * @Id @Column(type="integer")
     * @GeneratedValue
     */
    protected $id;

    /**
     * 标题
     *
     * @Column(type="string", length=250, nullable=true)
     */
    protected $content;

    /**
     *
     * @Column(type="integer")
     */
    protected $uid;

    /**
     *
     * @Column(type="integer", nullable=false)
     */
    protected $ac_id;

    /**
     *
     * @Column(type="integer", nullable=false)
     */
    protected $added_time;


    protected $tokens;

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getId()
    {
        return $this->id;
    }

    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    public function getContent()
    {
        return $this->content;
    }

    public function setUid($uid)
    {
        $this->uid = $uid;
        return $this;
    }

    public function getUid()
    {
        return $this->uid;
    }

    public function setAcid($ac_id)
    {
        $this->ac_id = $ac_id;
        return $this;
    }

    public function getAcid()
    {
        return $this->ac_id;
    }

    public function setUpdatedTime($updated_time)
    {
        $this->updated_time = $updated_time;
        return $this;
    }

    public function getUpdatedTime()
    {
        return $this->updated_time;
    }

    public function setAddedTime($added_time)
    {
        $this->added_time = $added_time;
        return $this;
    }

    public function getAddedTime()
    {
        return $this->added_time;
    }

    
    // public function setPersonalCertification($personalCertification)
    // {
    //     $this->personalCertification = $personalCertification;
    //     return $this;
    // }

    // public function getPersonalCertification()
    // {
    //     if ($this->personalCertification instanceof PersonalCertification) return $this->hydrator->extract(new PersonalCertificationEntity($this->personalCertification, $this->serviceManager));
    //     else return $this->personalCertification;
    // }

    public function setTokens($tokens)
    {
        $this->tokens = $tokens;
        return $this;
    }

    public function getTokens()
    {
        return $this->tokens->count();
    }

    
}
